import htmlparser.HtmlParser;
import org.htmlparser.Node;
import org.htmlparser.Parser;
import org.htmlparser.util.NodeList;
import org.htmlparser.util.ParserException;

class Test {

    public static void main(String[] args) {
        try {
            HtmlParser htmlParser = new HtmlParser("http://localhost/PubMed/01/entrez.htm");
            NodeList nodeList = htmlParser.getNodeList();
            NodeList nodelistParagrafo = new NodeList();

            htmlParser.percorrerAllHtml(nodeList);
            nodelistParagrafo = htmlParser.getNodeParagraphList();
//            System.out.println(htmlParser.percorrerNosParagrafoHtml(nodeList));
            System.out.println(htmlParser.getString());
            System.out.println("PARAGRAFOS = " + htmlParser.getContador());
            System.out.println("PARAGRAFOS AUTORES= " + htmlParser.getContadorAutor());            

        } catch (ParserException pe) {
            pe.printStackTrace();
        }
    }

}